extends Launcher
class_name PlayerLauncher

@export_group("射击按键")
@export var fire_action:String = "fire"
@export var reload_action:String = "reload"

func _process(_delta: float) -> void:
	if reload_action:
		if Input.is_action_pressed(reload_action):
			reload()
	if fire_action:
		if Input.is_action_pressed(fire_action):
			var dir = get_global_mouse_position() - gun.global_position
			fire(dir.normalized())
